Check `global' property of the arch specific virqs.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 18 May 2006 15:19:18 +0000 (16:19 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 18 May 2006 15:19:18 +0000 (16:19 +0100)
Signed-off-by Kevin Tian <Kevin.tian@intel.com>

xen/common/event_channel.c
xen/include/asm-ia64/event.h
xen/include/asm-x86/event.h

index c02ef9ac082e570e4253d1b84fb50649c8b4239a..6218773a1e276cd759b940b5007041d4cc71055e 100644 (file)
@@ -60,6 +60,9 @@ static int virq_is_global(int virq)
     case VIRQ_XENOPROF:
         rc = 0;
         break;
+    case VIRQ_ARCH_0 ... VIRQ_ARCH_7:
+        rc = arch_virq_is_global(virq);
+        break;
     default:
         rc = 1;
         break;
index 32afe397950f5a48d5026370191fa22c08922999..bcef493eb4f8499087955bd5dcad02eaee552570 100644 (file)
@@ -37,4 +37,21 @@ static inline void evtchn_notify(struct vcpu *v)
     (!!(v)->vcpu_info->evtchn_upcall_pending &  \
       !(v)->vcpu_info->evtchn_upcall_mask)
 
+static inline int arch_virq_is_global(int virq)
+{
+    int rc;
+
+    switch ( virq )
+    {
+    case VIRQ_ITC:
+        rc = 0;
+        break;
+    default:
+        rc = 1;
+        break;
+    }
+
+    return rc;
+}
+
 #endif
index ad1b9b245a081cb8185ddc4cc4ed1d8b24f740b6..b51d1acafacaa289b9bebc6a09e070228e8021ed 100644 (file)
@@ -31,4 +31,10 @@ static inline void evtchn_notify(struct vcpu *v)
     (!!(v)->vcpu_info->evtchn_upcall_pending &  \
       !(v)->vcpu_info->evtchn_upcall_mask)
 
+/* No arch specific virq definition now. Default to global. */
+static inline int arch_virq_is_global(int virq)
+{
+    return 1;
+}
+
 #endif